package com.google.gwt.sample.dynatablerf.server;

import java.util.List;

import com.google.gwt.sample.dynatablerf.server.business.ControladorFactory;
import com.google.gwt.sample.dynatablerf.server.domain.ServicoProjeto;
import com.google.gwt.sample.dynatablerf.server.domain.ServicoProjetoQueryParams;

public class ServicoProjetoService {

	public List<ServicoProjeto> findAll(
			ServicoProjetoQueryParams ServicoProjetoQueryParams,
			int startIndex, int maxResult) {
		return ControladorFactory.getControladorServicoProjeto().findAll(
				ServicoProjetoQueryParams, startIndex, maxResult);
	}

	public Long count(ServicoProjetoQueryParams ServicoProjetoQueryParams) {
		return ControladorFactory.getControladorServicoProjeto().count(
				ServicoProjetoQueryParams);
	}

	public List<ServicoProjeto> findAll(String suggestion,
			ServicoProjetoQueryParams params, int maxResult) {
		return ControladorFactory.getControladorServicoProjeto().findSuggestions(
				suggestion, params, maxResult);
	}
}
